<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<h2>JavaScript Arrays</h2>
	<p>The following code creates an Array called cars:</p>
	<script>
		var cars = new Array();
		cars[0] = "Saabzzz";
		cars[1] = "Volvozz";
		cars[2] = "BMWzz";
	</script>
	or condensed Array
	<script>
		var cars = new Array("Saab", "Volvo", "BMW");
	</script>
	or literal Array
	<script>
		var cars = [ "Saabzzzz", "Volvo", "BMW" ];
	</script>

	<script>
		var i;
		var carz = new Array();
		
		carz[0] = "Saab";
		carz[1] = "Volvo";
		carz[2] = "BMW";
		console.log("primul meu log statement catre consola");
		console.log(">>"+carz.length);
		
		for (i = 0; i <cars.length; i++) {
			document.write(cars[i] + "<br>");
		}
	</script>
a
</body>
</html>